package org.vserver.tmp;

import static org.jboss.seam.ScopeType.*;

import org.hibernate.validator.Email;
import org.hibernate.validator.Length;
import org.hibernate.validator.Size;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
import java.io.Serializable;

/**
 * User: karpden ( Denis Karpov )
 * Date: 2/16/11
 * Time: 5:15 PM
 */
@Scope(CONVERSATION)
@Name("testComp")
public class Test implements Serializable{
    String name;
    String email;

    @Email
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    @Length(min = 2, max = 14)
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public void success(){

    }

}
